/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import DAOInterface.AbstractDAOMapFactory;
import DAOInterface.DAOXMLConnection;
import ModelInterface.IModelCrawler;
import org.w3c.dom.NodeList;

/**
 *
 * @author Fabian
 */
public class ModelCrawler implements IModelCrawler{
    
    private DAOXMLConnection myXMLConnection;

    /**
     * 
     * @return
     */
    @Override
    public NodeList getData() {
        return myXMLConnection.getData();
    }

    /**
     * 
     * @param nameXML
     * @return
     */
    @Override
    public boolean setConnection(String nameXML) {
        myXMLConnection = AbstractDAOMapFactory.getAbstractControllerFactory(4).getXMLConnector();
        return myXMLConnection.setConnection(nameXML);
    }
    
    
}
